<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML>
	<HEAD>
		<TITLE>论坛首页</TITLE>
		
	</HEAD>
	<style type="text/css">

	table {  
*border-collapse: collapse; /* IE7 and lower */  
border-spacing: 0;  
width: 100%;  
}  
  
	.zebra td, .zebra th {  
padding: 10px;  
border-bottom: 1px solid #f2f2f2;  
}  
  
.zebra tbody tr:nth-child(even) {  
background: #f5f5f5;  
-webkit-box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;  
-moz-box-shadow:0 1px 0 rgba(255,255,255,.8) inset;  
box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;  
}  
  
.zebra th {  
text-align: left;  
text-shadow: 0 1px 0 rgba(255,255,255,.5);  
border-bottom: 1px solid #ccc;  
background-color: #eee;  
background-image: -webkit-gradient(linear, left top, left bottom, from(#f5f5f5), to(#eee));  
background-image: -webkit-linear-gradient(top, #f5f5f5, #eee);  
background-image: -moz-linear-gradient(top, #f5f5f5, #eee);  
background-image: -ms-linear-gradient(top, #f5f5f5, #eee);  
background-image: -o-linear-gradient(top, #f5f5f5, #eee);  
background-image: linear-gradient(top, #f5f5f5, #eee);  
}  
  
.zebra th:first-child {  
-moz-border-radius: 6px 0 0 0;  
-webkit-border-radius: 6px 0 0 0;  
border-radius: 6px 0 0 0;  
}  
  
.zebra th:last-child {  
-moz-border-radius: 0 6px 0 0;  
-webkit-border-radius: 0 6px 0 0;  
border-radius: 0 6px 0 0;  
}  
  
.zebra th:only-child{  
-moz-border-radius: 6px 6px 0 0;  
-webkit-border-radius: 6px 6px 0 0;  
border-radius: 6px 6px 0 0;  
}  
  
.zebra tfoot td {  
border-bottom: 0;  
border-top: 1px solid #fff;  
background-color: #f1f1f1;  
}  
  
.zebra tfoot td:first-child {  
-moz-border-radius: 0 0 0 6px;  
-webkit-border-radius: 0 0 0 6px;  
border-radius: 0 0 0 6px;  
}  
  
.zebra tfoot td:last-child {  
-moz-border-radius: 0 0 6px 0;  
-webkit-border-radius: 0 0 6px 0;  
border-radius: 0 0 6px 0;  
}  
  
.zebra tfoot td:only-child{  
-moz-border-radius: 0 0 6px 6px;  
-webkit-border-radius: 0 0 6px 6px  
border-radius: 0 0 6px 6px  
}  
   
	</style>
	<BODY>
		<DIV>
			
		</DIV>
		<DIV class="h">
			<TABLE cellSpacing="0" cellPadding="0" width="100%">
				<TR class="tr2" align="left">
					<TD colSpan="2" style="WIDTH: 70%;">
						您好：${sessionScope.user.username } &nbsp;| &nbsp;
						<A href="userLogout.action">退出系统</A>
					</TD>
					<TD style="WIDTH: 30%;">
						<A href="findListTipByuserid.action">用户帖子列表</A>&nbsp;
					</TD>
				</TR>
			</TABLE>
		</DIV>
		<br />
			<DIV>
				&gt;&gt;
				<B><a href="getIndexInfo.action">论坛首页</a>
				</B>
			</DIV>
			<br />
				<DIV class="t">
					<TABLE cellSpacing="0" cellPadding="0" width="100%" class="zebra">
						<TR class="tr2" align="center">
							<TD colSpan="2">
								论坛
							</TD>
							<TD style="WIDTH: 10%;">
								帖子
							</TD>
							<TD style="WIDTH: 25%">
								最后发表
							</TD>
						</TR>
						<s:iterator value="listInfos">
							<TR class="tr3">
								<TD colspan="4">
									<s:property value="key" />
								</TD>
							</TR>
							<s:iterator value="value">
								<TR class="tr3">
									<TD width="5%">
										&nbsp;
									</TD>
									<TH align="left">
										
										<A href="findTipsByBoard.action?boardId=<s:property value="boardid"/>"><s:property
												value="boardname" />
										</A>
									</TH>
									<TD align="center">
										<s:property value="tipCount" />
									</TD>
									<TH>
										<SPAN> 
										<A href="findReplyByTipid.action?boardId=<s:property value="boardid"/>&topicId=<s:property value="tipid"/>">
												<s:property value="title" />
										</A>
										</SPAN>
										<BR />
										<SPAN><s:property value="username" />
										</SPAN>
										<SPAN class="gray"><s:property value="publishtime" />
										</SPAN>
									</TH>
								</TR>
							</s:iterator>
						</s:iterator>
					</TABLE>
				</DIV>
			<div>
				<jsp:include page="bottom.jsp"></jsp:include>
			</div>
	</BODY>
</HTML>
